package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public int getUserInfo(String username,String password) {
        return userMapper.getUserInfo(username,password,null);
    }

    public List<UserInfo> getAll() {
        return userMapper.getAll();
    }
}